<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Matematrix Pagina inicial</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="description" content="Web tutorial" />
        <meta name="keywords" content="XHTML,CSS,Tutorial" />
        <meta name="author" content="Joao Alves, Leonardo Lino, Micael Campos" />

        <link rel="stylesheet" type="text/css" href="{$template_url}/admin/css/admin.css" />    
        <!--<link rel="stylesheet" type="text/css" href="{$template_url}/admin/css/jquery-ui-1.8.21.custom.css" />-->
        
        {if isset($cssFileList)}
            {foreach from=$cssFileList item=i}
            <link rel="stylesheet" type="text/css" href="{$template_url}/{$i}" />
            {/foreach}
           {/if}
        <link rel="stylesheet" type="text/css" href="{$template_url}/admin/style.css" />
        <script type="text/javascript" src="{$template_url}/admin/javascript/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="{$template_url}/admin/javascript/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="{$template_url}/admin/javascript/ddaccordion.js"></script>

        
        <script type="text/javaScript">
             var url ='{$template_url}/admin/css/jquery-ui-1.8.21.custom.css';
            
            //alert (url);
            
            function loadcss(url) {
                var head = document.getElementsByTagName('head')[0];
                var link = document.createElement('link');
                link.type = 'text/css';
                link.rel = 'stylesheet';
                link.href = url;
                head.appendChild(link);
                return link;
            }
            loadcss(url);
        </script>
        
        
    </head>
    <body>


        <script type="text/javaScript">
            // <![CDATA[


            /*
             * Função generica para validar todos os campos
             */
            function validateField(e){
                var nomeField = $(e).attr("id");
                var msgErro = "#"+nomeField+"err";
                var estado = true;
                
                
                if ($(e).val().length < 2){  
                    estado = false;
                }
                
                if (estado){
                    $(e).removeClass("redborder");
                    $(msgErro).hide();
                    return true;
                } else {
                    $(e).addClass("redborder");
                    $(msgErro).show();
                    return false;
                }
            }
            
    
            $(document).ready(function() {
               
                 /*loadcss('{$template_url}/admin/css/jquery-ui-1.8.21.custom.css');*/
            });
            
            ddaccordion.init({
                headerclass: "submenuheader", //Shared CSS class name of headers group
                contentclass: "submenu", //Shared CSS class name of contents group
                revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
                mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
                collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
                defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
                onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
                animatedefault: false, //Should contents open by default be animated into view?
                persiststate: true, //persist state of opened contents within browser session?
                toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
                togglehtml: ["suffix", "<img src='{$template_url}/admin/images/plus.gif' class='statusicon' />", "<img src='{$template_url}/admin/images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
                animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
                oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
                    //do nothing
                },
                onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
                    //do nothing
                }
            });
            
            // ]]>
        </script>
